﻿using MediatR;
using ProduceBasicData.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace ProduceBasicData.Api.Application.Command.Material.Craft
{
    /// <summary>
    /// 更新
    /// </summary>
    public class UpdateCraftCommand:IRequest<ApiResult<int>>
    {
        public int Id { get; set; }
        
        /// <summary>
        /// 预览图
        /// </summary>
        public string? PreviewImage { get; set; }

        public string? PriviewJson { get; set; }
        /// <summary>
        /// 工艺路线名称
        /// </summary>
        public string CraftName { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public string CraftType { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string CraftStatus { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string CraftDesc { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string UpdateName { get; set; }
    }
}
